package org.hjj.design.u95.storage;

import org.hjj.design.u95.domain.RequestInfo;

import java.util.Collections;
import java.util.List;
import java.util.Map;

/**
 * redis implementation of {@link MetricsStorage}
 *
 * @author:何嘉俊
 * @date:2021/5/17
 */
public class RedisMetricsStorage implements MetricsStorage {
    @Override
    public void saveRequestInfo(RequestInfo requestInfo) {
        //...
        System.out.println("saveRequestInfo");
    }

    @Override
    public List<RequestInfo> getRequestInfos(String apiName, long startTimeInMillis, long endTimeInMillis) {
        //...
        System.out.println("getRequestInfos");
        return Collections.emptyList();
    }

    @Override
    public Map<String, List<RequestInfo>> getRequestInfos(long startTimeInMillis, long endTimeInMillis) {
        //...
        System.out.println("getRequestInfos");
        return Collections.emptyMap();
    }
}
